package com.flea.hclv.model.dao;

import com.flea.hclv.model.entity.HTimeTable;

import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import org.apache.ibatis.session.RowBounds;

public interface HTimeTableMapper {
    int deleteByPrimaryKey(String id);

    int insert(HTimeTable record);

    int insertSelective(HTimeTable record);

    HTimeTable selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(HTimeTable record);

    int updateByPrimaryKey(HTimeTable record);

    List<HTimeTable> selectByProductId(String productId);

    int insertList(@Param("entities") List<HTimeTable> timetables);

    int deleteByProductIds(@Param("productIds") List<String> strings);

	HTimeTable selectForUpdateByPrimId(@Param("id")String timeTableId);
	/**
	 * 
	 * @description 无论是否删除，下架等
	 * @methodName findByDateForRecoder
	 * @param
	 * @returnType List<HTimeTable>   
	 * @throw
	 */
	List<HTimeTable> findByDateForRecoder(@Param("date")Date date);

  List<HTimeTable> findByProductIdPaging(RowBounds rowBounds, @Param("productId") String productId);

  List<HTimeTable> findByProductId(@Param("productId")String productId);
}